var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.sendNormalTalk("为了打败浓姬的分身，必须以1~3人组队进入，并且由队长和我对话。", 0, 9130101, false, true)
        } else {
            if (status === a++) {
                cm.askMenu("怎么办？\r\n#L0#为了打败浓姬的分身，进去吧。#l\r\n#L1#离开比睿山副本。#l\r\n", 0, 9130101)
            } else {
                if (status === a++) {
                    if (b == 0) {
                        cm.sendNormalTalk("为了打败浓姬的分身，进去吧。", 1, 9130101, false, true)
                    } else {
                        cm.dispose();
                        cm.warp(811000008, 0)
                    }
                } else {
                    if (status === a++) {
                        cm.forceStartQuest(58957, "0");
                        cm.forceStartQuest(58900, "2");
                        cm.dispose();
                        cm.openNpc(9130101, "Boss_比睿山_浓姬分身")
                    }
                }
            }
        }
    }
};